Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit error when manager model argument is incorrect #29

Conversation

flaeppe
Copy link
Owner

@flaeppe flaeppe commented Jul 2, 2022

  • Model won't define a manager if manager model argument doesn't match model
  • Creating a dynamic manager where manager model argument doesn't match queryset model argument will now emit an error
  • Manager type created via .from_queryset will now populate its model argument (as long as it's correct)

Related issues

typeddjango#1025 (comment)

flaeppe added 6 commits June 30, 2022 09:53
- Model won't define a manager if manager model argument doesn't match
  model
- Creating a dynamic manager where manager model argument doesn't match
  queryset model argument will now emit an error
- Manager type created via `.from_queryset` will now populate its model
  argument (as long as it's correct)
@flaeppe flaeppe force-pushed the fix/fail-manager-model-arg-mismatch branch from 926daf5 to ea47c0c Compare July 3, 2022 13:10
@flaeppe flaeppe force-pushed the fix/type-queryset-as-manager branch from d927b96 to 29b5c5b Compare September 28, 2022 20:09
@flaeppe flaeppe deleted the branch fix/type-queryset-as-manager July 30, 2024 21:39
@flaeppe flaeppe closed this Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant